# coding:utf-8
from OPAP.cylshlfm import Cylshlfm
import sys

if __name__ == "__main__":
    cyl = Cylshlfm()
    while True:
        print '\n*******************************************************\n'
        print '* (P)parameter...\n'
        print '* (S)shape...\n'
        print '* (L)listening point...\n'
        print '* (C)calculation...\n'
        print '* (Q)quit\n'
        print '*******************************************************\n'
        str = raw_input('command >>> ')
        if str[0] == 'P':
            cyl.setparameter()
        elif str[0] == 'S':
            cyl.setshape()
        elif str[0] == 'L':
            cyl.setlisten()
        elif str[0] == 'C':
            cyl.calc()
        elif str[0] == 'Q':
            sys.exit()
        else :
            print 'unknown'